package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    Member findByTelephone(String telephone);

    //添加成员
    void add(Member member);

    //根据id，查询会员
    Member findByMemberId(Integer memberId);

    void addLogin(Member member);

    List<Map> getMemberReport(@Param("start")String start,@Param("end") String end);

    Long todayNewMember(String today);

    Long totalMember();

    Long getAfterDayByDate(String thisWeekMonday);
	
	 Integer getMemberCountByMonth(String month);
    // 根据日期获取会员
    Integer findMemberCountByDate(String day);
    // 获取某一天之后的新增会员
    Integer findMemberCountAfterDate(String day);
    // 获取总会员
    Integer findMemberTotalCount();

    Page<Map> findPage(String quryString);

    Member findById(Integer id);

    void updateByFileNumber(Member member);

    void deleteFileNumber(String fileNumber);
	
	
}
